package com.smart.support.bodys;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @author Xiaxuqiu
 * @date 2023-04-01
 **/
public class ManagerLoginBody {


    @Data
    public static class AccountLoginBody {
        @ApiModelProperty("登录账号")
        @NotBlank(message = "登录账号 不能为空")
        @Length(min = 1, max = 16, message = "登录账号 字段格式长度错误")
        private String account;

        @ApiModelProperty("登录密码")
        @NotBlank(message = "登录密码 不能为空")
        @Length(min = 1, max = 16, message = "登录密码 字段格式长度错误")
        private String password;

        @ApiModelProperty("验证码UUID")
        @Length(max = 32, message = "验证码UUID 字段格式长度错误")
        private String uuid;

        @ApiModelProperty("登录验证码")
        @Length( max = 16, message = "登录验证码 字段格式长度错误")
        private String captcha;
    }


}
